<?php
/**
 * Created by PhpStorm.
 * User: chentaohua
 * Date: 2019/1/5
 * Time: 17:35
 * 公共验证类
 */

namespace app\admin\validate;

use think\Request;
use think\Validate;

class Base extends Validate{


    public function goCheck(){
        $requset = Request::instance();
        $param = $requset -> param();
        $res = $this -> check($param);
        if(!$res){
            return $this -> getError();
        }
        return true;
    }

}